package com.huabo.utils;

import java.io.Serializable;
import java.util.List;

public class Page<T> implements Serializable{

 	private static final long serialVersionUID = 1L;

	private long total;

	private List<T> rows;

	public Page() {
	}

	public Page(List<T> data) {
		super();
		this.total = data.size();
		this.rows = data;
	}

	public Page(long total, List<T> data) {
		super();
		this.total = total;
		this.rows = data;
	}

	public List<T> getData() {
		return rows;
	}

	public void setData(List<T> data) {
		this.rows = data;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}
}
